<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;

/**
 * @mixin think\Model
 */
class UrlModel extends Model
{
    protected $name = 'url';
    //  UrlModel::getShowUrl($val->id_domain);
    public static function getShowUrl($id){
        return '/show/'.$id.'.html';
    }
    
    public static function getContactUrl($id){
        return '/contact.html#comment-'.$id;
    }
    
    public static function getNewsUrl($id){
        return '/sort/'.$id.'.html';
    }
    
    public static function getPhotosUrl($id){
        return '/photos/'.$id.'.html';
    }

}
